//
//  HotSearchViewCell.m
//  Tang
//
//  Created by 352324497@qq.com on 15/12/11.
//  Copyright © 2015年 352324497@qq.com. All rights reserved.
//

#import "HotSearchViewCell.h"

@implementation HotSearchViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(20 * Kx6, 0, frame.size.width - 40 * Kx6, frame.size.height)];
        self.titleLabel.font = [UIFont systemFontOfSize:14 * Kx6];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

-(void)setLabelWithTitle:(NSString *)title
{
    if (title.length != 0)
    {
        self.titleLabel.text = title;
    }
}
@end
